package com.punai.config.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punai.common.core.domain.BaseEntity;
import com.punai.common.core.domain.TreeParentBo;
import org.apache.commons.lang3.builder.ToStringBuilder;

@TableName("config_materialcategory")
public class ConfigMaterialCategory extends BaseEntity{
    private String id;
    private String pid;

    /**
     * 编码
     */
    private String code;
    /**
     * 名称
     */
    private String name;

    /**
     * 类型 zf_0：政府指导价  gl_1:工料机询价
     */
    private String type;
    /**
     * 数据类型  0：为地区 1：为分类
     */
    private String dataType;
    /**
     * 地区
     */
    private String address;

    /**
     * 数据状态  0：为正常，1：为已删除
     */
    private String dataStatus = "0";


    private Integer orderNum;
    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Long userId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(String dataStatus) {
        this.dataStatus = dataStatus;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("pid", pid)
                .append("code", code)
                .append("name", name)
                .append("type", type)
                .append("dataType", dataType)
                .append("address", address)
                .append("dataStatus", dataStatus)
                .append("orderNum", orderNum)
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
